package com.wisezone.workflow.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.wisezone.common.bean.entity.BaseEntity;

/**
 * 流程模版对象
 * 
 * @author tss 2009-09-05
 * 
 */
@Entity
@Table(name = "wf_process_definition")
public class WfProcessDefinition extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8895886383868913740L;

	/**
	 * ID
	 */
	private Long id;

	/**
	 * 模版名称
	 */
	@Column(name = "name", length = 50)
	private String name;

	/**
	 * 版本
	 */
	@Column(name = "version", length = 4)
	private Integer version;

	/**
	 * 流程标志符
	 */
	@Column(name = "key", length = 20)
	private String key;

	/**
	 * 删除状态
	 */
	private Integer state;

	/**
	 * 是否激活
	 */
	private Long isActive;

	/**
	 * 文件内容
	 */
	@Column(name = "file_content", columnDefinition = "LONGTEXT")
	private String fileContent;

	/**
	 * 描述
	 */
	private String description;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name == null ? null : name.trim();
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getFileContent() {
		return fileContent;
	}

	public void setFileContent(String fileContent) {
		this.fileContent = fileContent;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Long getIsActive() {
		return isActive;
	}

	public void setIsActive(Long isActive) {
		this.isActive = isActive;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

}